#!/bin/bash

echo "====================================="
echo "running project on node.js"

dojoVersion=$1
JsSourcesDirectory=$2
jsFileName=$3

echo "dojoVersion = $dojoVersion" 
echo "to change dojoVersion just change it in pom.xml dojo.version property"
echo ""
echo "JsSourcesDirectory  = $JsSourcesDirectory"
echo ""
echo "jsFileName = $jsFileName"
echo ""
echo "running command below..."
echo "node $projectBuildDirectory/dojo-release-$dojoVersion-src/dojo/dojo.js load=$JsSourcesDirectory/$jsFileName"
echo "===================================="

cd $JsSourcesDirectory/
echo "pwd = $(pwd)"

_RUN_NODE_COMMAND(){
    node $JsSourcesDirectory/dojo/dojo.js load=$JsSourcesDirectory/$jsFileName
}

_RUN_NODE_COMMAND



     
